
<div class="layui-form-item">
  <label class="layui-form-label">标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="title" id="info_title" class="layui-input modelform_title" value="{$r?$r['title']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">缩略图<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="thumb" id="info_thumb" value="{$r?$r['thumb']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_thumb')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_thumb" data-listtype="img" id="info_thumb_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_thumb','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">时间<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" autocomplete="off" name="newstime" id="info_newstime" value="<?=$r?date("Y-m-d H:i:s",$r['newstime']):date("Y-m-d H:i:s")?>" style=""  data-format="yyyy-MM-dd HH:mm:ss" class="layui-input form-date">
  </div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">多图1<span></span></label>
    <div class="layui-input-inline morepic">
        <div class="morepic_box">
            <div class="piclist" data-field="images1">
                <ul id="images1_piclist_ul">
                    <?php
                    if($r){
                        $morepic=$r['images1'];
                        $morepic_arr=explode("\r\n",$morepic);
                        foreach($morepic_arr as $v){
                            if(!$v){break;};
                            $vs=explode("||",$v);
                    ?>
                    <li title="拖动我是可以排序的哦" draggable="false">
                        <a class="piclist_img images1_fancybox" rel="images1_rel" title="<?=$vs[2]?>" href="<?=$vs[1]?>">
                            <img src="<?=$vs[0]?>" draggable="false">
                            <input type="hidden" name="images1_smallimg[]" value="<?=$vs[0]?>">
                            <input type="hidden" name="images1_bigimg[]" value="<?=$vs[1]?>">
                        </a>
                        <div class="piclist_title"><input type="text" name="images1_imgname[]" value="<?=$vs[2]?>"></div>
                        <div class="file-panel"><span class="cancel" onclick="delete_li(this)" title="删除图片">删除</span></div>
                    </li>
                    <?php
                        }                     
                    }
                    ?>
                    <li class="add_morepic" id="images1_add_button" title="增加图片" onclick="selectfiles('images1',moreimg,'img','1600','0')">
                        <div class="piclist_img">+</div>
                    </li>                                                
                    <div class="clear"></div>
                </ul>
            </div>                                        
        </div>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">第二图标<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="icon2" id="info_icon2" value="{$r?$r['icon2']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_icon2')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_icon2" data-listtype="img" id="info_icon2_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_icon2','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	